﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ShootController : MonoBehaviour
{
    public bool enable = true;

    public delegate void OnShooting();

    public event OnShooting onShooting;

    public void OnClick()
    {
        if(enable && onShooting != null)
        {
            onShooting();
        }
    }
}
